<%--
  Created by IntelliJ IDEA.
  User: lishuoboy
  Date: 2022-01-10
  Time: 18:37
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" %>
<html>
<head>
    <title>登录-登录成功cookie记住用户名，免输入用户名</title>
</head>
<body>
<form action="/lishuoboy_javaweb_war_exploded/CookieServlet?action=login" method="post">
    <input type="text" name="name" placeholder="输入用户名" value="${cookie.name.value}"><br>
    <input type="password" name="pwd" placeholder="输入密码"><br>
    <input type="submit" name="login">
</form>
<div><h1>${sessionScope.loginMsg}</h1></div>
</body>
</html>
